package com.fwmagic.flink.projectcase.queryactivitycase.bean;

public class ActivityBean {

    public String uid;

    public String aid;

    public String activetyName;

    public String time;

    public int eventType;

    public String province;

    public Double longitude;

    public Double latitude;

    public Integer counts=1;

    public ActivityBean() {
    }

    public ActivityBean(String uid, String aid, String activetyName, String time, int eventType, String province) {
        this.uid = uid;
        this.aid = aid;
        this.activetyName = activetyName;
        this.time = time;
        this.eventType = eventType;
        this.province = province;
    }

    public ActivityBean(String uid, String aid, String activetyName, String time, int eventType, String province, Double longitude, Double latitude) {
        this.uid = uid;
        this.aid = aid;
        this.activetyName = activetyName;
        this.time = time;
        this.eventType = eventType;
        this.province = province;
        this.longitude = longitude;
        this.latitude = latitude;
    }

    public static ActivityBean of(String uid, String aid, String activetyName, String time, int eventType, String province){
        return new ActivityBean(uid,aid,activetyName,time,eventType,province);
    }

    public static ActivityBean of(String uid, String aid, String activetyName, String time, int eventType, String province,Double longitude, Double latitude){
        return new ActivityBean(uid,aid,activetyName,time,eventType,province,longitude,latitude);
    }

    @Override
    public String toString() {
        return "ActivityBean{" +
                "uid='" + uid + '\'' +
                ", aid='" + aid + '\'' +
                ", activetyName='" + activetyName + '\'' +
                ", time='" + time + '\'' +
                ", eventType=" + eventType +
                ", province='" + province + '\'' +
                ", longitude=" + longitude +
                ", latitude=" + latitude +
                ", counts=" + counts +
                '}';
    }
}
